<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>5Vue·模板语法</title>
    <script src="./vue.js"></script>
</head>

<body>
    <!-- <div id="app">{{name}}</div> -->
    <div id="app">
        <div>{{name+'jack'}}</div>
        <div v-text="name"></div>
        <div v-html="name +'jack'"></div>
    </div>
    <script>
        // 通过new加Vue这个修饰符创建出来的
        var vm = new Vue({
            el: '#app',
            data: {

                name: '<h1>mary</h1>'
            }
        })

    </script>
</body>

</html>